import React from 'react';


export default class Dialog extends React.Component {

	constructor(props) {
	  super(props);
	  this.state = {};
	}

	render() {
		return (
			<div className="dialog">
				<div className="title">{this.props.title}</div>
                <div className="content">{this.props.children}</div>
                <div className="button-area">
                    <a onClick={this.props.onClickCancle.bind(this)}   className="btns">取消</a>//这里接收父组件传递过来的关闭对话框的方法
                    <a className="btns btns-blue">确定</a>
                </div>
			</div>
		);
	}

} 